package com.ynet.middleground.user.bean;

import com.ynet.core.common.BaseReqObj;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @program: 2019-10-12_userCenter
 * @description: 加解锁定用户请求对象
 * @author: DaiGaoLe
 * @create: 2019-10-22 14:01
 **/
@Data
@ApiModel(value = "加解锁定用户请求对象", description = "加解锁定用户请求对象")
public class UnlockOrLocksUserReq extends BaseReqObj {
    private static final long serialVersionUID = 7556241172989181189L;
    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id", notes = "用户id", dataType = "Integer", required = true)
    private Integer userId;

    /**
     * 操作类型(0-加锁，1-解锁)
     */
    @NotEmpty(message = "操作类型不能为空")
    @ApiModelProperty(value = "操作类型(1-加锁，0-解锁)", notes = "操作类型(1-加锁，0-解锁)", dataType = "String", required = true)
    private String operationType;
    
    /**
     * 所属企业id
     */
    @ApiModelProperty(value = "所属企业id(即企业客户的userId,修改企业员工数据时必填)", notes = "所属企业id(即企业客户的userId,修改企业员工数据时必填)", dataType = "Integer")
    private Integer enterpriseId;

    @ApiModelProperty(value = "业态公司id", notes = "业态公司id")
    private Integer formatId;
}
